package cn.buyclss.backend.mapper.shop;

import cn.buyclss.backend.entity.domain.shop.Order;
import cn.buyclss.backend.entity.domain.shop.OrderExample;
import java.util.List;

import cn.buyclss.backend.entity.po.shop.OrderDetailPO;
import cn.buyclss.backend.entity.po.shop.OrderPO;
import org.apache.ibatis.annotations.Param;

public interface OrderMapper {
    /**
     *
     * @mbg.generated 2019-03-21
     */
    long countByExample(OrderExample example);

    /**
     *
     * @mbg.generated 2019-03-21
     */
    int deleteByExample(OrderExample example);

    /**
     *
     * @mbg.generated 2019-03-21
     */
    int deleteByPrimaryKey(Integer id);

    /**
     *
     * @mbg.generated 2019-03-21
     */
    int insert(Order record);

    /**
     *
     * @mbg.generated 2019-03-21
     */
    int insertSelective(Order record);

    /**
     *
     * @mbg.generated 2019-03-21
     */
    List<Order> selectByExample(OrderExample example);

    /**
     *
     * @mbg.generated 2019-03-21
     */
    Order selectByPrimaryKey(Integer id);




    /**
     *
     * @mbg.generated 2019-03-21
     */
    int updateByExampleSelective(@Param("record") Order record, @Param("example") OrderExample example);

    /**
     *
     * @mbg.generated 2019-03-21
     */
    int updateByExample(@Param("record") Order record, @Param("example") OrderExample example);

    /**
     *
     * @mbg.generated 2019-03-21
     */
    int updateByPrimaryKeySelective(Order record);

    /**
     *
     * @mbg.generated 2019-03-21
     */
    int updateByPrimaryKey(Order record);

    List<OrderPO> selectOrderWithCustomerAndShopByUserId(Integer uid);

    OrderDetailPO getOrderDetailById(Integer orderId);
}